import request from '@/utils/system/request.js'
const BASE_URL = import.meta.env.VITE_BASE_URL

// 获取配置文件
export function getConfApi() {
  return request({
    baseURL: '',
    url: `${BASE_URL}runtime/config.js`,
    method: 'get',
  })
}

export function getMapDataApi(fileName) {
  return request({
    baseURL: '',
    url: `${BASE_URL}mapjson/${fileName}`,
    method: 'get',
  })
}
